import request from "..";
export const getUserList = () => {
    return request.get('/users/list');
}
export const createUser = (data:any) => {
    return request.post('/users/register',data);
}
export const updateUser = (data:any) => {
    return request.put('/users/update',data);
}
export const deleteUser = (id:number) => {
    return request.delete(`/users/delete/${id}`);
}
export const login = (data:any) => {
    return request.post('/users/login',data);
}

export const getSimpleUserList = () => {
    return request.get('/users/simpleList');
}